home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Documentation / Development Notes / ODF Examples RoadMap / Miscellaneous < prev    next >
Encoding:
Text File  |  1996-08-16  |  3.0 KB  |  52 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                      
  5. Miscellaneous
  6. ODF Release 1                                                                                                                                                             
  7.  
  8.  
  9. Table of Contents
  10. -------------------------
  11. • About Box -  All Samples
  12. • Part Info Resource -  All Samples
  13. • Trackers - ODFDraw, ODFContainer, ODFBitmap
  14. • Drop Trackers - ODFTable
  15. • Idling - ODFClock, ODFForm, ODFBitmap
  16.  
  17.  
  18. About Box
  19.  
  20. All Samples: All ODF sample parts except ODFNothing and ODFButton have an About box. Look at the DoMenu method in the part class and at the PartInfo.fr resource file. Also see the engineering note describing the About Box resource in the documentation folder.
  21.  
  22.  
  23. Part Info Resource
  24.  
  25. All Samples: All ODF Samples must have a Part Info Resource. Look at the file called PartInfo.fr in each sample. You will get a runtime assertion if this resource is missing (debug build only). Take a look also at the engineering note describing the Part Info Resource in the documentation folders.
  26.  
  27.  
  28. Trackers
  29.  
  30. ODFDraw (and ODFContainer): uses trackers to draw a new shape, resize an existing one or to select shapes. Trackers are implemented in ShpTrakr.cpp and are used in CDrawView::DoMouseDown, CDrawSelection::SelectWithRectangle, and CDrawSelection::Resize.
  31.  
  32. ODFBitmap: uses a tracker to select a portion of the bitmap. It is implemented in RbbrBand.cpp and is used in CBitmapFrame::DoMouseDown.
  33.  
  34.  
  35. Drop Tracker
  36.  
  37. A drop Tracker (FW_CDropTracker) is a special type of tracker used during drag&drop. Usually the built-in functionality is fine and you should not have to deal with it. The only part that subclasses FW_CDropTracker is ODFTable. ODFTable wants the drop highlight to highlight the destination cell not the whole content of the frame. The CTableDropTracker is defined in Tracker.cpp and is used in the overridden method CTableFrame::NewDropTracker.
  38.  
  39.  
  40. Idling
  41.  
  42. A frame or a part object can get idle time by  creating an FW_CIdler object.
  43.  
  44. ODFClock: look at the creation of an FW_CIdler object in CClockPart::Initialize. The idler object is deleted in the destructor of CClockPart. CClockPart::DoIdle is called at idle time. Notice that DoIdle only updates frames that are viewed as frames and are not in limbo.
  45.  
  46. ODFBitmap: here a frame is registered for idle time. Check the constructor and destructor of CBitmapFrame. See also CBitmapFrame::DoIdle and CBitmapFrame::FocusStateChanged. In FocusStateChanged the frame unregisters for idle time when it loses the selection focus and re-registers when it gets the selection focus. 
  47.  
  48. ODFForm: In ODFForm the frame registers for idle time so that the caret blinks in text-edit fields. 
  49.  
  50.  
  51. © 1993 - 1996 Apple Computer, Inc. All rights reserved.
  52. Apple, the Apple Logo, Macintosh, and OpenDoc are trademarks of Apple Computer, Inc., registered in the United States and other countries.